//用于给测试执行选择关联测试计划的窗体
var testRunDesignTreeGridWin=Ext.create('Ext.window.Window', {
	title:'选择执行的测试计划',
    height: 430,
    width: 200,
    layout: 'fit',
    items: [testRunDesignTreePanel],
    closeAction: 'hide' // 防止窗体被销毁
});

//用于用编辑器编辑测试步骤结果理由的窗体
var testRunStepEditorWin = Ext.create('Ext.window.Window', {
	title:'编辑理由',
    height: 430,
    width: 550,
    layout: 'fit',
    items: [testRunStepReasonEditorIFrame],
    closeAction: 'hide', // 防止窗体被销毁
    buttons: [{
		text: '确认',
		itemId: 'testRunStepWinButton',
		listeners: [{
			click: function() {
				testRunStepReasonEditorIFrame.getFrame().contentWindow.postMessage({
			        status: 6,
			    }, zuulUrl + '/' + webEditorServiceName + '/index.html');//获取编辑器的内容
			}
		},{
			close: function(panel, eOpts) {//关闭窗口时要把监听移除
				testRunListenFlag=false;
				window.removeEventListener('message', testRunPutEditDataIntoGrid, false);//移除监听
			}
		}]
	}]
});

//用于查看测试执行审核记录的批注的窗体
var testRunCheckLogAnnotatoWin=Ext.create('Ext.window.Window', {
	title:'查看审核批注',
	height: 400,
    width: 800,
    layout: 'fit',
    items: [{
    	itemId:'testRunCheckLogAnnotatoPanel'
    }],
    closeAction: 'hide' // 防止窗体被销毁
});